<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

class IndexController extends CommonController
{
    public function root(Request $request)
    {
        $aid = $this->checkLogin();
        if ($aid) {
            return redirect()->route('admin/index');
        } else {
            return redirect()->route('admin/login');
        }
    }

    public function index(Request $request)
    {
        return $this->fetch();
    }

    public function home(Request $request)
    {
    }
}
